package cn.tedu.v1.vo;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@Accessors(chain = true)
public class UpdateDocVo {
    private Integer id;

    @NotBlank(message = "姓名不能为空")
    @Pattern(regexp ="[\u4e00-\u9fa5]{2,4}",message ="姓名应为2-4个汉字")
    private String name;

    @NotBlank(message = "联系电话不能为空")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$",message = "请输入正确的手机号码")
    private String phone;

    @NotNull(message = "所属科室不能为空")
    private Integer departmentId;

    @NotBlank(message = "血型不能为空")
    private String bloodType;

    @NotBlank(message = "出生日期不能为空")
    private String birthday;


    private MultipartFile picture;

    @NotBlank(message = "简况不能为空")
    @Pattern(regexp =".{10,1000}",message ="简况应不少于10个字")
    private String introduce;

    @NotBlank(message = "性别不能为空!")
    private String gender;

    @NotBlank(message = "邮箱不能为空!")
    private String email;








}
